.TH qarray_dist_like 3 "JUNE 2010" libqthread "libqthread"
.SH NAME
.B qarray_dist_like
\- redistribute a qarray to match another qarray
.SH SYNOPSIS
.B #include <qthread/qarray.h>

.I void
.br
.B qarray_dist_like
.RI "(const qarray *" ref", qarray *" mod );
.SH DESCRIPTION
This function modifies the qarray
.I mod
to match the distribution of qarray
.IR ref .
These functions manipulate or report the shepherd to which the
.I index
elementof the
.I array
qarray is assigned. Note that not all types of qarray can be made to match all
other types of qarray; if the qarrays cannot be distributed similarly, the
input qarrays are unmodified.
.SH SEE ALSO
.BR qarray_create (3),
.BR qarray_destroy (3),
.BR qarray_iter (3),
.BR qarray_elem (3)
